package com.unhz.generator.dao;

import com.unhz.generator.pojo.DeliveryOrder;
import com.unhz.generator.vo.DeliveryOrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface DeliveryOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeliveryOrder record);

    int insertSelective(DeliveryOrder record);

    DeliveryOrder selectByPrimaryKey(Long id);

    int selectCountByKey(@Param("keywords") String keywords);

    List<DeliveryOrderVo> selectAllDeliveryOrder(Map<String,Object> map);

    int updateByPrimaryKeySelective(DeliveryOrder record);

    int updateByPrimaryKey(DeliveryOrder record);

    DeliveryOrder selectDeliveryOrderByKey(@Param("deliveryNo") String deliveryNo,@Param("productionId") String productionId);

    List<DeliveryOrder> selectByProductionId(@Param("productionId") String productionId);

    int selectCountByAdminId(@Param("adminId") Integer adminId,@Param("keywords") String keywords);

    List<DeliveryOrderVo> selectAllDeliveryOrderByAdminId(Map<String,Object> map);

//    int deleteDeliveryOrder(@Param("deliveryId") Long deliveryId);

    int deleteDeliveryOrderid(@Param("deliveryId") Long deliveryId);

    List<DeliveryOrder> selectDeliveryOrder(@Param("productionId") Long productionId);

    DeliveryOrder selectNewDeliveryOrder(@Param("productionId") Long productionId);
}